package com.jl.model;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 零件表
 * </p>
 *
 * @author JiangJian
 * @since 2019-03-06
 */
@TableName("component")
public class Component implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 自增主键id
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 零件名称
     */
    private String name;

    /**
     * 零件的描述信息
     */
    private String description;

    /**
     * 零件编号
     */
    private String number;
    /**
     * 零件的平均寿命，单位天
     */
    private Integer avgLife;
    /**
     * 单位
     */
    private String unit;

    /**
     * 单价
     */
    private float price;
    /**
     * 配件类型
     */
    private Long type;
    /**
     * 备件等级 1：关键备件 2：普通备件
     */
    private Integer level;
    /**
     * 最低库存量
     */
    private Integer minReserve;
    /**
     * 最高库存数
     */
    private Integer maxReserve;

    /**
     * 状态码：暂未定义
     */
    private Integer status;

    /**
     * 创建时间
     */
    private Date gmtCreate;

    /**
     * 创建者id 如果值为0 则表示系统创建
     */
    private Long createId;

    /**
     * 修改时间
     */
    private Date gmtModified;

    /**
     * 修改者id
     */
    private Long modifyId;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public Integer getAvgLife() {
        return avgLife;
    }

    public void setAvgLife(Integer avgLife) {
        this.avgLife = avgLife;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public Long getType() {
        return type;
    }

    public void setType(Long type) {
        this.type = type;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public Integer getMinReserve() {
        return minReserve;
    }

    public void setMinReserve(Integer minReserve) {
        this.minReserve = minReserve;
    }

    public Integer getMaxReserve() {
        return maxReserve;
    }

    public void setMaxReserve(Integer maxReserve) {
        this.maxReserve = maxReserve;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Long getCreateId() {
        return createId;
    }

    public void setCreateId(Long createId) {
        this.createId = createId;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    public Long getModifyId() {
        return modifyId;
    }

    public void setModifyId(Long modifyId) {
        this.modifyId = modifyId;
    }
}
